<?php

namespace App\Http\Controllers\View\Admin;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Facades\Services\Admin\UserService;

class UserController extends Controller
{
    public function index()
    {
        $users = UserService::getUsers();

        $roles = UserService::getRoles();

        return view('pages.admin.user.list',[
            'users' => $users,
            'roles' => $roles
        ]);
    }

    /**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function create()
    {
        $roles = UserService::getRoles();

        return view('pages.admin.user.create',[
            'roles' => $roles
        ]);
    }

    public function updatePassword(){
        return view('pages.admin.user.update_password');
    }
}
